From: Colin Walters Date: Mon, 8 May 2017 20:44:42 +0000 (-0400) Subject: ci: Extend FAH rootfs for installed tests X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~37^2~28 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=af7fed94ed901dd1b57962c1e6510dc93c1954ec;p=ostree.git ci: Extend FAH rootfs for installed tests These at the moment aren't in a container, and may need space. In the future overlay2 will help here, we can more easily extend the rootfs. Closes: #840 Approved by: jlebon --- diff --git a/.redhat-ci.yml b/.redhat-ci.yml index 818a072a..e3eb0f87 100644 --- a/.redhat-ci.yml +++ b/.redhat-ci.yml @@ -132,7 +132,7 @@ build: tests: - make install DESTDIR=$(pwd)/insttree - rsync -rl -e 'ssh -o User=root' . vmcheck:ostree/ - - ssh root@vmcheck 'ostree admin unlock && rsync -rlv ./ostree/insttree/usr/ /usr/ && ./ostree/tests/installed/run.sh' + - ssh root@vmcheck './ostree/tests/installed/fah-prep.sh && ostree admin unlock && rsync -rlv ./ostree/insttree/usr/ /usr/ && ./ostree/tests/installed/run.sh' artifacts: - test-suite.log diff --git a/tests/installed/fah-prep.sh b/tests/installed/fah-prep.sh new file mode 100755 index 00000000..0db4d15e --- /dev/null +++ b/tests/installed/fah-prep.sh @@ -0,0 +1,8 @@ +#!/bin/bash +set -xeuo pipefail +# If we're using devmapper, expand the root +if lvm lvs atomicos/docker-pool &>/dev/null; then + systemctl stop docker + lvm lvremove -f atomicos/docker-pool +fi +lvm lvextend -r -l +100%FREE atomicos/root